package com.harvey.guava.eventbus;

import com.google.common.eventbus.EventBus;

/**
 * @author Harvey
 * @create 2020-03-29 08:07
 **/

public class SimpleEventBus
{

    public static void main(String[] args) {
        final EventBus eventBus = new EventBus();

        // 注册
        eventBus.register(new SimpleEventLister());

        eventBus.post(new MyEvent("heihei", "200"));

    }

}
